import request from '../../utils/request.js'
const state={
	CenterData:{}
}
const mutations={
	SAVE_CENTERDATA(state,CenterData){
		state.CenterData=CenterData
	}
}
const actions={
	async getCenterList({commit}){
		const result=await request('/getCenterData')
		console.log('result2',result);
		commit('SAVE_CENTERDATA',result)
	}
}
const getters={
	centerList(satet){
		return state.CenterData.list || []
	},
	avatar(state){
		return state.CenterData.avatar || ''
	}
}
export default{
	state,
	mutations,
	actions,
	getters
}